package com.ddwl.schema.bo.data;

import com.ddwl.schema.bo.base.BaseBo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;


@Getter
@Setter
@ApiModel(description = "协议bo")
public class ProtocolConfigBo extends BaseBo {

    @NotNull(groups = {BaseBo.Update.class, BaseBo.Delete.class}, message = "协议ID为空")
    @ApiModelProperty("协议ID")
    private String id;

    @NotNull(groups = BaseBo.Create.class, message = "协议名称为空")
    @ApiModelProperty("协议名称")
    private String name;

    @NotNull(groups = BaseBo.Create.class, message = "协议内容为空")
    @ApiModelProperty("协议内容")
    private String content;

    @ApiModelProperty("是否有效 0：是，1:否")
    private Integer status;

    @NotNull(groups = BaseBo.Create.class, message = "协议类型为空")
    @ApiModelProperty("协议类型 0.五八马服务协议 1.商品管理规范协议  2.授权店铺协议  3.多典守护代理协议")
    private Integer type;
}
